﻿using Payroll.Biz.Legacy.Models;
using Payroll.Biz.Legacy.ServiceParams;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Payroll.Biz.Legacy.Test.Utils
{
    internal static class ExpectedFactory
    {
        public static Employee CreateSalariedEmployee(Guid id, AddSalariedEmployeeServiceParams serviceParams)
        {
            return new Employee(id, serviceParams.Address, new SalariedClassification(serviceParams.Salary))
            {
                Name = serviceParams.Name,
                Method = new HoldMethod(),
                Schedule = new MonthlySchedule(),
            };
        }
    }
}
